Skip to content

docs: Environment empty values, the new traits and updateRow() (3.2.0) - #195

Merged
armanist merged 3 commits into
stagingfrom
docs/environment-empty-values
Nov 26, 2026
Merged

armanist merged 3 commits into
stagingfrom
docs/environment-empty-values

Conversation

@armanist

Copy link
Copy Markdown
Collaborator

For #194 (not closed here: merges into staging close nothing).

Framework change: quantum-php/framework#709 (PR quantum-php/framework#710, merge-up quantum-php/framework#711).

Summary

  • Environment package: an empty .env value (KEY=, or a KEY line without =) is not set, so env_bool() and env_int() return the default, with the TWO_FA= example in usage; the trait list is AppEnvTrait, ReadTrait and WriteTrait, and Environment loads the file itself; "Mutation model" describes the forms updateRow() finds, that a comment after the value stays, that the value is written as given, what is left unchanged, and that a failed replacement throws instead of writing an empty file. The contracts page states the guarantees and links to it.
  • The .env readers and the config readers differ on purpose: both contracts pages say so in the same words and link to each other.
  • Upgrade guide, "Upgrading from 3.1 to 3.2": new section "Empty .env values and the Environment traits"; "Check the upgrade" becomes section 12, and its grep finds the old Environment trait names and the empty values in .env.

Changed paths

  • v3.0/packages/environment/overview.md, architecture.md, contracts.md, helpers.md, usage.md
  • v3.0/packages/config/contracts.md
  • v3.0/upgrade-guide.md

SUMMARY.md is unchanged: no pages were added, moved or removed.

@armanist
armanist merged commit 8e1e7ba into staging Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant